@fz10: 10px;
@fz12: 12px;
@fz14: 14px;
@fz16: 16px;
@color-h1: #111111;
@color-h2: #656565;
@color-h3: #919191;
@color-h4: #DF0011;
@color-bg: #f3f4f5;
@theme-color: #DF0011;
page {
  font-size: @fz14;
  box-sizing: border-box;
  background-color: @color-bg;
}

view,
button,
input {
  box-sizing: border-box;
}

.main {
  position: relative;
  z-index: 1;
  padding: 44px 12px 64px 12px;
}

.setting {
  border-radius: 4px;
  margin-bottom: 10px;
  background: #ffffff;
  &__item {
    padding: 12px 0;
    position: relative;
    &:after {
      position: absolute;
      left: 0;
      bottom: 0;
      content: '';
      width: 100%;
      height: 1px;
      background: @color-bg;
      transform: scaleY(.5);
      transform-origin: left bottom;
    }
    &:last-child {
      &:after {
        content: none;
      }
    }
  }
}

.item {
  display: flex;
  align-items: center;
  border-left: 4px solid @theme-color;
  padding: 0 10px;
  &__l {
    flex-shrink: 0;
    color: @color-h2;
  }
  &__c {
    flex: 1;
    padding: 0 10px;
  }
  &__r {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    .btn{
      padding: 0 12px;
      color: #fff;
      font-size: @fz12;
      background: linear-gradient(90deg, @theme-color, #e54b4d);
      box-shadow: 0 0 20px #ccc;
      transition: all 300ms;
      &:before, &:after{
        content: none;
      }
      &:active{
        opacity: .8;
      }
    }
  }
}

.ctext {
  color: @color-h1;
  letter-spacing: -0.5px;
}

.ctext.red {
  color: @theme-color;
}

.rtext {
  // padding: 0 5px;
}

.ricon {
  width: 20px;
  height: 20px;
}

.input {
  color: @color-h3;
}

.subitem {
  padding: 0 14px;
  .textarea-wrap {
    position: relative;
    .textarea {
      position: relative;
      z-index: 1;
      box-sizing: border-box;
      width: 100%;
      height: 140px;
      padding: 10px;
      line-height: 20px;
      margin-top: 10px;
      background: rgba(238, 238, 238, 1);
    }
    .text-count {
      position: absolute;
      ;
      right: 10px;
      bottom: 10px;
      z-index: 2;
      font-size: @fz14;
      color: @color-h2;
    }
  }
}

// image-wrap
.image-wrap {
  margin: 0 -5px 0 -5px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  .image-count {
    position: absolute;
    right: 5px;
    top: -30px;
    line-height: 20px;
    font-size: @fz14;
    color: @color-h2;
  }
  .image-item {
    width: 33.3333%;
    padding: 5px;
    position: relative;
    .mask {
      position: relative;
      width: 100%;
      height: 0;
      padding-bottom: 100%;
      .image {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(238, 238, 238, 1);
      }
      .close{
        width: 20px;
        height: 20px;
        position: absolute;
        right: -10px;
        top: -10px;
      }
      .add {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(238, 238, 238, 1);
        transition: all 300ms;
        &:active {
          opacity: .8;
        }
        &:before,
        &:after {
          content: "";
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translateX(-50%) translateY(-50%);
          background: rgba(204, 204, 204, 1);
        }
        &:before {
          width: 32px;
          height: 1px;
        }
        &:after {
          width: 1px;
          height: 32px;
        }
      }
    }
    .name{
      text-align: center;
      line-height: 25px;
      font-size: @fz12;
      color: @color-h2;
    }
  }
}

// dialog slot c
.c1 {
  font-size: @fz14;
  color: @color-h2;
  .t {
    height: 34px;
    margin: 0 12px;
    display: flex;
    align-items: center;
    background: rgba(240, 234, 234, 1);
    border-radius: 3px;
    &__l {
      flex: 1;
      padding: 6px 12px;
    }
    &__r {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      .icon {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        background: #eee;
      }
    }
  }
  .b{
    height: 44px;
    margin: 0 12px;
    display: flex;
    align-items: center;
    &__l{
      flex: 1;
      color: @color-h1;
      font-weight: bold;
    }
    &__r{
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
  }
}
.c2 {
  padding: 12px;
  font-size: @fz14;
  .search{
    display: flex;
    align-items: center;
    padding: 0 6px;
    background:rgba(238,238,238,1);
    border-radius:3px;
    .icon{
      width: 20px;
      height: 20px;
    }
    .input{
      flex: 1;
      height: 34px;
      padding: 0 6px;
      color: @color-h2;
    }
    .input-p{
      font-size: @fz14;
      color: @color-h3;
    }
  }
  .checkboxs{
    height: 240px;
    margin-top: 12px;
    overflow: auto;
    &::-webkit-scrollbar{
      width: 0;
      height: 0;
    }
  }
  .checkbox{
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: @fz14;
    color: @color-h1;
    &:last-child{
      margin-bottom: 0;
    }
    &__l{
      flex: 1;
      display: flex;
      .checkbox-text{

      }
    }
    &__r{
      font-size: 0;
      flex-shrink: 0;
      display: flex;
      align-items: center;
    }
  }
}
.c3{
  padding: 6px 12px;
  max-height: 294px;
  overflow: auto;
  &::-webkit-scrollbar{
    width: 0;
    height: 0;
  }
}

// dialog b
.b .btn-wrap{
  width: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  .btn{
    border-radius: 3px;
    padding: 0 40px;
    color: #fff;
    font-size: @fz14;
    background: linear-gradient(90deg, @theme-color, #e54b4d);
    box-shadow: 0 0 20px #ccc;
    transition: all 300ms;
    &:before, &:after{
      content: none;
    }
    &:active{
      opacity: .8;
    }
  }
}

.b .infos{
  &__item{
    margin-bottom: 6px;
    &:last-child{
      margin-bottom: 12px;
    }
    .info{
      display: flex;
      align-items: center;
      font-size: @fz14;
      padding: 0 12px;
      &__l{
        width: 80px;
        color: @color-h1;
      }
      &__c{
        flex: 1;
        color: @color-h2;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        .input-p{
          font-size: @fz14;
          color: @color-h3;
        }
      }
      &__r{
        color: @theme-color;
      }
    }
  }
}



// button
.main .btn-wrap {
  position: fixed;
  z-index: 1;
  left: 0;
  bottom: 12px;
  width: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  .btn{
    padding: 0 40px;
    color: #fff;
    font-size: @fz14;
    background: linear-gradient(90deg, @theme-color, #e54b4d);
    box-shadow: 0 0 20px #ccc;
    transition: all 300ms;
    &:before, &:after{
      content: none;
    }
    &:active{
      opacity: .8;
    }
  }
}